Micron Document
🎖️GitЯра🎖️

Node / meshtastic / Meshtastic-Android / files / core / repository / src / commonMain / kotlin / org / meshtastic / core / repository / EventFirmwareRepository.kt

Displaying Raw • Download

core/repository/src/commonMain/kotlin/org/meshtastic/core/repository/EventFirmwareRepository.kt 4f86b91973784e4ec05b9a5c7b2dc396ed4848b8 (4f86b919) Text, 1.67 KB

T8b949e/*
* Copyright (c) 2026 Meshtastic LLC
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
Tff7b72package T7ee787org.meshtastic.core.repository

Tff7b72import T7ee787kotlinx.coroutines.flow.Flow
Tff7b72import T7ee787org.meshtastic.core.model.EventFirmwareEdition

T8b949e/** Event-firmware display metadata, seeded from the bundled `event_firmware.json` snapshot. */
Tff7b72interface T56d364EventFirmwareRepository Tb4b4b4{
T8b949e/** Metadata for [editionName] (a `FirmwareEdition` enum name), or `null` if it is not a known event edition. */
Tff7b72suspend Tff7b72fun Td2a8ffgetEditionTb4b4b4(Te6edf3editionNameTb4b4b4: Tffa657StringTb4b4b4)Tb4b4b4: Te6edf3EventFirmwareEdition?

T8b949e/**
* Metadata for [editionName], re-emitting when the cache is refreshed from the network.
*
* Prefer this over [getEdition] for anything long-lived on screen. A one-shot read resolves once — when the device
* connects — so an edition added to the hosted manifest after that point stays invisible until the user reconnects.
* The flow triggers a refresh on collection and then re-emits whatever lands.
*/
Tff7b72fun Td2a8ffobserveEditionTb4b4b4(Te6edf3editionNameTb4b4b4: Tffa657StringTb4b4b4)Tb4b4b4: Te6edf3FlowTff7b72<Te6edf3EventFirmwareEdition?Tff7b72>
Tb4b4b4}

Served by rngit 1.5.0 - Generated in 0.04s